package com.hntest.service.impl;

import com.hntest.dao.PersonDao;
import com.hntest.entity.Account;
import com.hntest.service.PersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("personService")
public class PersonServiceImpl implements PersonService {

    @Autowired
    private PersonDao personDao;
    public void  setPersonDao(PersonDao personDao){
        this.personDao=personDao;
    }

    @Override
    public Account selectAccount(int id) {
        Account acc=personDao.selectAccount(id);
        return acc;
    }
}
